<!DOCTYPE html>

<html xmlns:th="http://www.thymeleaf.org"
	xmlns:dt="http://github.com/dandelion/datatables"
	xmlns:sec="http://www.thymeleaf.org">
<head>
<meta charset="utf-8" />
<title>Edit Use Case</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="" />
<meta name="author" content="Dhrubo" />




</head>

<body>

	<form action="authentication" th:action="@{/updateusecase}" th:fragment="edituc-basic"
		th:with="c=${useCase.createdDate.toDate()}, l=${useCase.lastUpdatedDate.toDate()}"
		class="form-horizontal" th:object="${useCase}" method="post">

		<fieldset>
			<legend>Edit Basic Information</legend>

			<div class="control-group"
				th:class="${#fields.hasErrors('name')} ? 'control-group error' : 'control-group'">

				<label class="control-label" for="name" th:utext="#{usecasename}"></label>

				<div class="controls">
					<input type="text" th:field="*{name}" class="input-xlarge"
						required="required" /> <span class="help-inline error"
						th:if="${#fields.hasErrors('name')}" th:errors="*{name}">Use
						case name is required.</span> <input type="hidden" th:field="*{id}" />
				</div>
			</div>

			<div class="control-group">
				<label class="control-label" for="name" th:utext="#{description}"></label>
				<div class="controls">
					<textarea rows="3" cols="20" th:field="*{description}"
						autofocus="autofocus" class="input span9"
						placeholder="Description"></textarea>
				</div>
			</div>

			<div class="control-group">
				<label class="control-label" for="name" th:utext="#{createdby}"></label>
				<div class="controls">
					<span th:text="*{createdBy.name}" class="label label-info">
					</span> <span th:text="${beans.pretty.format(c)}" class="label label-info">
					</span>
				</div>
			</div>



			<div class="control-group">
				<label class="control-label" for="name" th:utext="#{lastupdatedby}"></label>
				<div class="controls">
					<span th:text="*{lastUpdatedBy.name}" class="label label-info"></span>
					<span th:text="${beans.pretty.format(l)}" class="label label-info"></span>
				</div>
			</div>



			<div class="control-group">
				<label class="control-label" for="name" th:utext="#{status}"></label>
				<div class="controls">
					<span th:text="*{status.name}" class="label label-warning"></span>
				</div>
			</div>




			<div class="form-actions">
				<button type="submit" class="btn btn-success">Save</button>
				<button type="reset" class="btn btn-info">Cancel</button>
			</div>

		</fieldset>
	</form>

</body>
</html>
